<!DOCTYPE HTML>
{% load i18n static main_tag %}
{% get_current_language as LANGUAGE_CODE %}
<html>
<head>
    <title>{% block title %}{{ order_info.order_code }}-contract{% endblock %}</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link rel="shortcut icon" href="{% static 'main/favicon.ico' %}">
    <meta name="keywords" content="">
    <style type="text/css">
        html {
            width: 100%;
        }

        body {
            font-family: 'Open Sans', sans-serif;
            font-size: 14px;
            width: 100%;
            text-align: left;
        }

        td.logo {
          width: 140px;
        }

        .page {
            width: 660px;
            margin-top: 0;
            margin-bottom: 0;
            margin-right: auto;
            margin-left: auto;
            background-color: #ffffff;
            padding-top: 30px;
            padding-bottom: 30px;
            padding-right: 40px;
            padding-left: 40px;
        }

        .container {
            width: 100%;
        }

        h2, h3 {
            text-align: center;
        }

        h2 {
            font-size: 28px;
        }

        h3 {
            font-size: 18px;
        }

        th {
            font-size: 15px;
        }

        table {
            width: 100%;
            border-collapse:collapse;
        }

        table.equipment_list_contract tbody tr.list_header th{
            background-color: #63B8FF;
            text-align: center;
        }

        table.equipment_list_contract th, table.equipment_list_contract td {
            border: solid black;
            border-width:1px;
            padding: 5px;
            font-size: 12px;
        }

    </style>{% if request.GET.v == 'page' %}
    <link href="{% static 'main/css/main.css' %}" rel="stylesheet">{% else %}
    <link href="{% static 'main/css/main-pdf.css' %}" rel="stylesheet">{% endif %}
</head>
<body>
    <div class="page">
        <div class="container">
            {% block page_header %}{% include 'main/page_header_invoice_en.html' %}{% endblock %}
            <hr style="width:100%; height:2px; border:none; border-top:2px solid #555555;" />
            <h2>合&emsp;&emsp;同</h2>
            <h3>CONTRACT</h3>
            <table>
                <tbody>
                    <tr>
                        <td></td>
                        <th valign="top" style="text-align:right;width:210px;">合同编号 / Contract No.:</th>
                        <td valign="top" style="text-align:right;width:120px;">{{ order_info.order_code }}</td>
                    </tr>
                    <tr>
                        <td></td>
                        <th valign="top" style="text-align:right;width:210px;">打印日期 / Printed Date:</th>
                        <td valign="top" style="text-align:right;width:120px;">{{ print_date|date:"Y-m-d" }}</td>
                    </tr>
                </tbody>
            </table>
            <div class="row" style="height:20px;"></div>
            <table>
                <tbody>
                    <tr>
                        <th style="width:120px;">买方/Buyer:</th>
                        <td colspan="3">{{ order_info.client.company }}</td>
                    </tr>
                    <tr>
                        <th>地址/Address:</th>
                        <td colspan="3">{{ order_info.client.company_address }}</td>
                    </tr>
                    <tr>
                        <th>银行/Bank:</th>
                        <td colspan="3">{{ order_info.client.bank|default_if_none:"N/A" }}</td>
                    </tr>
                    <tr>
                        <th>帐号/Account:</th>
                        <td>{{ order_info.client.bank_account|default_if_none:"N/A" }}</td>
                        <th>SWIFT Code:</th>
                        <td>{{ order_info.client.swift_code|default_if_none:"N/A" }}</td>
                    </tr>
                    <tr>
                        <th>电话/Tel:</th>
                        <td style="width:200px;">{{ order_info.client.mobile }}</td>
                        <th style="width:120px;">传真/Fax:</th>
                        <td>{{ order_info.client.fax|default_if_none:"N/A" }}</td>
                    </tr>
                    <tr>
                        <td colspan="4" style="height:30px;"></td>
                    </tr>
                    <tr>
                        <th>卖方/Seller:</th>
                        <td colspan="3">{{ order_info.sub_company.company_name_cn }} /
                            {{ order_info.sub_company.company_name_en }}</td>
                    </tr>
                    <tr>
                        <th>地址/Address:</th>
                        <td colspan="3">{{ order_info.sub_company.company_address_cn }} /
                            {{ order_info.sub_company.company_address_en }}</td>
                    </tr>
                    <tr>
                        <th>银行/Bank:</th>
                        <td colspan="3">{{ order_info.bank_account.bank }} / {{ order_info.bank_account.bank_en }}</td>
                    </tr>
                    <tr>
                        <th>帐号/Account:</th>
                        <td>{{ order_info.bank_account.bank_account|default_if_none:"N/A" }}</td>
                        <th>SWIFT Code:</th>
                        <td>{{ order_info.bank_account.swift_code|default_if_none:"N/A" }}</td>
                    </tr>
                    <tr>
                        <th>电话/Tel:</th>
                        <td>{{ order_info.sub_company.company_contact_en }}</td>
                        <th>传真/Fax:</th>
                        <td>{{ order_info.sub_company.fax|default_if_none:"N/A" }}</td>
                    </tr>
                    <tr>
                        <td colspan="4" height="20"></td>
                    </tr>
                </tbody>
            </table>
            <div class="row" style="height:20px;"></div>
            <table>
                <tbody>
                <tr>
                    <td>
                        本合同由买卖双方订立，根据本合同规定的条款，买方同意购买，卖方同意出售下述商品：<br>
                        This Contract is made by and between the Buyers and Sellers, whereby the Buyers agree to buy and the Sellers agree to sell the under-mentioned commodity according to the terms and conditions stipulated below:
                    </td>
                </tr>
                </tbody>
            </table>
            <div class="row" style="height:20px;"></div>
            <table>
                <tbody>
                <tr>
                    <th>
                        (1) 产品 / PRODUCT<br>
                    </th>
                </tr>
                </tbody>
            </table>
            <div class="row" style="height:20px;"></div>
            <table>
                <tbody>
                    <tr>
                        <th style="text-align:right;color:blue">货币 / Current: {{ order_info.price_unit }}</th>
                    </tr>
                </tbody>
            </table>
            <table class="equipment_list_contract">
                <tbody>
                    <tr class="list_header">
                        <th>No.</th>
                        <th>货名及规格<br>Commodity & Specification</th>
                        <th>单价<br>Unit Price</th>
                        <th>数量<br>Qty.</th>
                        <th>小计<br>Extended Price</th>
                    </tr>{% for item in item_list %}
                    <tr>
                        <td style="text-align:center;width:30px;">{{ forloop.counter }}</td>
                        <td>{{ item.equipment.equipment_code }} / {{ item.equipment.equipment_cn }}</td>
                        <td style="text-align:right;width:100px;">{{ item.item_price_each_auto }}</td>
                        <td style="text-align:center;width:60px;">{{ item.amount }}</td>
                        <td style="text-align:right;width:120px;">{{ item.item_final_price_auto }}</td>
                    </tr>{% endfor %}
                </tbody>
            </table>
            <table>
                <tbody>{% if order_info.transport_cost_auto %}
                    <tr>
                        <th style="text-align:right;">运输费用 / Transport Cost:</th>
                        <th style="text-align:right;width:120px;">+{{ order_info.transport_cost_auto|floatformat:'2' }}</th>
                    </tr>{% endif %}{% if order_info.install_cost_auto %}
                    <tr>
                        <th style="text-align:right;">安装调试费用 / Installation Cost:</th>
                        <th style="text-align:right;width:120px;">+{{ order_info.install_cost_auto|floatformat:'2' }}</th>
                    </tr>{% endif %}{% if order_info.material_cost_auto %}
                    <tr>
                        <th style="text-align:right;">工程材料费用 / Installation Materials Cost:</th>
                        <th style="text-align:right;width:120px;">+{{ order_info.material_cost_auto|floatformat:'2' }}</th>
                    </tr>{% endif %}
                    {% if extra_discount > 0 %}
                    <tr>
                        <th style="text-align:right;">特批折扣 / Extra Discount:</th>
                        <th style="text-align:right;width:120px;"><font color="red">-{{ extra_discount_auto|floatformat:'2' }}</font></th>
                    </tr>{% endif %}
                    {% if order_info.tax_rate > 0 %}
                    <tr>
                        <th style="text-align:right;">税 / Tax (+{{ order_info.tax_rate|floatformat:'2' }}%):</th>
                        <th style="text-align:right;width:120px;">+{{ price_tax_auto }}</th>
                    </tr>{% endif %}
                    <tr>
                        <th style="text-align:right;">{% if order_info.export_price %}合计/Total Value:  {% else %}合计/Total Value:  人民币 {{ c_price_with_tax }}{% endif %}</th>
                        <th style="text-align:right;width:120px;">{{ price_with_tax_auto|floatformat:'2' }}</th>
                    </tr>
                </tbody>
            </table>
            <div class="row" style="height:30px;"></div>
            <table>
                <tbody>
                    <tr>
                        <th style="width:280px;" colspan="2">(2) 交货类型 / TRANSACTION TYPE:</th>
                    </tr>
                    <tr>
                        <td style="width:20px;"></td>
                        <td>{{ order_info.transport_type.transport_cn }}</td>
                    </tr>
                    <tr>
                        <td style="width:20px;"></td>
                        <td>{{ order_info.transport_type.transport_en }}</td>
                    </tr>
                </tbody>
            </table>
            <div class="row" style="height:30px;"></div>
            <table>
                <tbody>
                    <tr>
                        <th style="width:280px;" colspan="2">(3) 交货周期 / TIME OF DELIVERY:</th>
                    </tr>
                    <tr>
                        <td style="width:20px;"></td>
                        <td>收到预付款以后{{ order_info.manufacturing_days|default_if_none:"N/A" }}个工作日。</td>
                    </tr>
                    <tr>
                        <td style="width:20px;"></td>
                        <td>{{ order_info.manufacturing_days|default_if_none:"N/A" }} workdays after advance payment. </td>
                    </tr>
                </tbody>
            </table>
            <div class="row" style="height:30px;"></div>
            <table>
                <tbody>
                    <tr>
                        <th style="width:280px;" colspan="2">(4) 包装 / PACKING:</th>
                    </tr>
                    <tr>
                        <td style="width:20px;"></td>
                        <td>须用坚固的铁架包装，适合长途空运/陆运，防湿、防潮、防震、防锈、耐粗暴搬运。包装箱内应包含一整套服务操作手册。</td>
                    </tr>
                    <tr>
                        <td style="width:20px;"></td>
                        <td>To be packed in strong iron frame(s) suitable for long distance air/land transportation and well protected from dampness, moisture, shock, rust and rough handling. One full set of service and operation manuals concerned shall be enclosed in the case(s).</td>
                    </tr>
                </tbody>
            </table>
            <div class="row" style="height:30px;"></div>
            <table>
                <tbody>
                    <tr>
                        <th style="width:280px;" colspan="2">(5) 付款条件 / TERMS OF PAYMENT:</th>
                    </tr>
                    <tr>
                        <td style="width:20px;"></td>
                        <td>{{ order_info.order_pay_method.pay_method_cn }}</td>
                    </tr>
                    <tr>
                        <td style="width:20px;"></td>
                        <td>{{ order_info.order_pay_method.pay_method_en }}</td>
                    </tr>
                </tbody>
            </table>
            <div class="row" style="height:30px;"></div>
            <table>
                <tbody>
                    <tr>
                        <th style="width:280px;" colspan="2">(6) 质量保证 / GUARANTEE OF QUALITY:</th>
                    </tr>
                    <tr>
                        <td style="width:20px;"></td>
                        <td>卖方保证订货系用最上等的材料和头等工艺制成，全新的，未曾使用过的, 并完全符合本合同规定的质量、规格和性能。卖方并保证本合同订货在正确安装、正常使用和维修的情况下，自安装之日起十二个月或货物装运之日起十五个月内运转良好，以先到期者为准。由于人为造成的、易损易磨件除外。</td>
                    </tr>
                    <tr>
                        <td style="width:20px;"></td>
                        <td>The Sellers shall guarantee that the goods are made of best materials, with first class workmanship, Brand new, unused, and correspond in quality, specification and performance stipulated in this contract in all respects with give satisfactory performance for a period of 12 months calculated from the date of installation or 15 months starting from the date of shipment, whichever is the earlier. Faults due to mal-operation as well as wear and tear parts are excluded.</td>
                    </tr>
                </tbody>
            </table>
            <div class="row" style="height:30px;"></div>
            <table>
                <tbody>
                    <tr>
                        <th style="width:280px;" colspan="2">(7) 检验和索赔 / INSPECTION AND CLAIMS:</th>
                    </tr>
                    <tr>
                        <td style="width:20px;"></td>
                        <td>如发现货物的品质、数量/重量与本合同不符, 买方有权在货物到达目的地后60天内根据中华人民共和国出入境检验检疫局出具的商检证书向卖方提出索赔。由承运人和保险公司负责的赔偿除外。</td>
                    </tr>
                    <tr>
                        <td style="width:20px;"></td>
                        <td>If the quality and/or quantity/weight be found not in conformity with the present contract, the Buyer shall be entitled to lodge claims with the Seller on the basis of the Certificate issued by China Exit and Entrance Inspection and Quarantine Bureau within 60 days after the goods arrival in the destination. With the exception, however, of those claims for which the carrier and/or insurance company are to be held responsible. </td>
                    </tr>
                </tbody>
            </table>
            <div class="row" style="height:30px;"></div>
            <table>
                <tbody>
                    <tr>
                        <th style="width:280px;" colspan="2">(8) 人力不可抗拒事故 / FORCE MAJEURE:</th>
                    </tr>
                    <tr>
                        <td style="width:20px;"></td>
                        <td>由于人力不可抗拒事故，而卖方交货延迟或不能交货时，责任不在卖方，但卖方应立即将事故通知买方，并于事故发生后十四天内将事故发生地政府主管机关出给的事故证明书用空邮寄交买方为证，并取得买方认可。在上述情况下，卖方仍负有采取一切必要措施从速交货的责任。如果事故持续超过十个星期买方有权撤销本合同。</td>
                    </tr>
                    <tr>
                        <td style="width:20px;"></td>
                        <td>The Sellers shall not be held responsible for any delay in delivery or non-delivery of the goods duo to Force Majeure. However, the Sellers shall advise the Buyers immediately of such occurrence and within fourteen days thereafter, shall send by airmail to the buyers for their acceptance a certificate issued by the competent government authorities of the place where accident occurs as evidence thereof. Under such circumstances the Sellers, however, are still under the obligation to take all necessary measures to hasten the delivery of the goods. In case the accident lasts for more than ten weeks, the Buyers shall have the right to cancel this Contract. </td>
                    </tr>
                </tbody>
            </table>
            <div class="row" style="height:30px;"></div>
            <table>
                <tbody>
                    <tr>
                        <th style="width:280px;" colspan="2">(9) 仲裁/ARBITRATION:</th>
                    </tr>
                    <tr>
                        <td style="width:20px;"></td>
                        <td>凡因执行本合同所发生的或与本合同有关的一切争议，应由双方通过友好协商予以解决，应提交中国国际经济贸易仲裁委员会根据中国国际经济贸易仲裁规则进行仲裁，仲裁裁决是终局的，对双方都有约束力。</td>
                    </tr>
                    <tr>
                        <td style="width:20px;"></td>
                        <td>All disputes arising from the execution of or in connection with this contract, shall be settled amicably through friendly negotiation. In case no settlement can be reached through negotiation the case shall then be submitted to China International Economic and Trade Arbitration Commission in Shanghai arbitration in accordance with The Rules of Arbitration of China International Economic & Trade Commission. The award rendered by the said commission shall be final and binding upon both parties.</td>
                    </tr>
                </tbody>
            </table>
            <div class="row" style="height:30px;"></div>
            <table>
                <tbody>
                    <tr>
                        <td>所有通知用中/英文写成，按照合同所列地址用传真/快递送达给各方。如果地址有变更，一方应在变更后3日内书面通知另一方。</td>
                    </tr>
                    <tr>
                        <td>All notice shall be written in Chinese or English and served to both parties by fax/courier according to the addresses shown in this contract. If any changes of the addresses occur, one party shall inform the other party of the change of address within 3 days after the change.</td>
                    </tr>
                </tbody>
            </table>
            <div class="row" style="height:30px;"></div>
            <table>
                <tbody>
                    <tr>
                        <td>本合同一式二份，买方执一份，卖方执一份，由双方代表正式签字盖章生效。</td>
                    </tr>
                    <tr>
                        <td>The present contract is in two copies of the same form, the buyer holds one; the seller holds one. The contract is signed by the authorized representative of both parties and shall become effective upon the formal and mutual signing and stamping of the contract.</td>
                    </tr>
                </tbody>
            </table>
            <table>
                <tbody>
                    <tr>
                        <th style="width:120px;padding:30px 0 20px;">买方 / Buyer:</th><td style="width:240px;"></td><th style="width:120px;padding:30px 0 20px;">卖方 / Seller:</th><td></td>
                    </tr>
                    <tr>
                        <td colspan="2" style="text-align:center;">{{ order_info.client.company }}</td><td colspan="2" style="text-align:center;">{{ order_info.sub_company.company_name_en }}</td>
                    </tr>
                    <tr>
                        <th style="width:90px;padding:100px 0 20px;">日期 / Date:</th><td  style="width:240px;"></td><th style="width:90px;padding:100px 0 20px;">日期 / Date:</th><td></td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    <div class="footer" style="text-align:center;">
        <p></p>
    </div>
</body>
</html>

